//
//  TKLlable.m
//  tuiguang
//
//  Created by wxt on 2018/8/17.
//  Copyright © 2018年 wxt. All rights reserved.
//

#import "TKLlable.h"

@implementation TKLlable

+(instancetype)labelWithFrame:(CGRect)frame
                         text:(NSString *)text
                    textColor:(UIColor *)textColor
                         font:(UIFont *)font
                textAlignment:(NSTextAlignment)textAlignment
              backgroundColor:(UIColor *)bgColor
{
    TKLlable * tklLabel=[[TKLlable alloc]initWithFrame:frame];
    tklLabel.text =text;
    tklLabel.textColor=textColor;
    tklLabel.font=font;
    tklLabel.textAlignment=textAlignment;
    tklLabel.backgroundColor=bgColor;
    return tklLabel;
}

+(instancetype)labelWithFrame1:(CGRect)frame
                         text:(NSString *)text
                    textColor:(UIColor *)textColor
                         font:(UIFont *)font
                textAlignment:(NSTextAlignment)textAlignment
              backgroundColor:(UIColor *)bgColor
{
    TKLlable * tklLabel=[[TKLlable alloc]initWithFrame:frame];
    tklLabel.text =text;
    tklLabel.textColor=textColor;
 
     tklLabel.font = [UIFont fontWithName:@"Arial-BoldMT"size:14];
       tklLabel.font=font;
    tklLabel.textAlignment=textAlignment;
    tklLabel.backgroundColor=bgColor;
    return tklLabel;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
